package com.rybbaby.tss.front.tssClasses.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * @description 班级考勤模块导出实体类
 *
 * @author 杨然
 *
 * @createDate 2017-08-09 下午11:50:14
 */
@Entity
@Table(name = "view_classes_attendance_management")
@DynamicUpdate(true)
@DynamicInsert(true)
public class ViewClassesAttendanceManagementExport implements Serializable {

    private static final long serialVersionUID = 8217873349765292895L;

    //主键
    private String id;

    //会员状态(1:亲子会员 2:过渡会员)
    private Integer type;

    //课程体系
    private String courseSystemName;

    //课程名称
    private String courseName;

    //授课老师
    private String realName;

    //课程日期
    private Timestamp createTime;

    //上课开始时间
    private Timestamp startTime;

    //上课结束时间
    private Timestamp endTime;

    //上课教室
    private String roomName;

    //人数
    private Integer sumPeople;

    //班级考勤状态
    private Integer classAttendanceStatus;

    //最后操作日期
    private String updateTime;

    //操作人
    private String userName;


    /**
     * 生成各属性get方法
     * */
    @Id
    @GeneratedValue(generator = "view_classes_attendance_managementIDGenerator" , strategy = GenerationType.AUTO)
    @GenericGenerator(name = "view_classes_attendance_managementIDGenerator" , strategy = "uuid")
    @Column(name = "id", nullable= false, length = 50)
    public String getId() {
        return id;
    }

    @Column(name = "type", nullable= false, length = 11)
    public Integer getType() {
        return type;
    }

    @Column(name = "courseSystemName", nullable= false, length = 50)
    public String getCourseSystemName() {
        return courseSystemName;
    }

    @Column(name = "courseName", nullable= false, length = 50)
    public String getCourseName() {
        return courseName;
    }

    @Column(name = "realName", nullable= false, length = 12)
    public String getStaffName() {
        return realName;
    }

    @Column(name = "createTime", nullable= false, length = 32)
    public Timestamp getCreateTime() {
        return createTime;
    }

    @Column(name = "startTime", nullable= false, length = 32)
    public Timestamp getStartTime() {
        return startTime;
    }

    @Column(name = "endTime", nullable= false, length = 32)
    public Timestamp getEndTime() {
        return endTime;
    }

    @Column(name = "roomName", nullable= false, length = 32)
    public String getRoomName() {
        return roomName;
    }

    @Column(name = "sumPeople", nullable= false, length = 32)
    public Integer getSumPeople() {
        return sumPeople;
    }

    @Column(name = "classAttendanceStatus", nullable= false, length = 32)
    public Integer getClassAttendanceStatus() {
        return classAttendanceStatus;
    }

    @Column(name = "updateTime", nullable= false, length = 32)
    public String getUpdateTime() {
        return updateTime;
    }

    @Column(name = "userName", nullable= false, length = 32)
    public String getUserName() {
        return userName;
    }

    /**
     * 生成各属性set方法
     * */
    public void setId(String id) {
        this.id = id;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public void setCourseSystemName(String courseSystemName) {
        this.courseSystemName = courseSystemName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public void setStaffName(String realName) {
        this.realName = realName;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }

    public void setEndTime(Timestamp endTime) {
        this.endTime = endTime;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public void setSumPeople(Integer sumPeople) {
        this.sumPeople = sumPeople;
    }

    public void setClassAttendanceStatus(Integer classAttendanceStatus) {
        this.classAttendanceStatus = classAttendanceStatus;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

}
